package org.academic.texteditor.gui.feature;

import java.awt.BasicStroke;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;

public class PageBorder extends Feature {

	private static final long serialVersionUID = -1374069236209219894L;

	private int width; 
	
	public PageBorder() {
		this.width = 2;
		
		setOpaque(false);
	}
	
	public void paint(Graphics g) {
		Graphics2D g2d = (Graphics2D) g;
		
		Dimension size = getSize();
		
		g2d.setStroke(new BasicStroke(width));
		g2d.drawRect(0, 0, size.width, size.height);
	}
	
}
